package com.qk.common.enums;

public enum LoginEnum implements Code{
    USER_NOT_EXIST("用户不存在", 101),
    USER_STATUS_UNNORMAL("用户状态异常", 103),
    USER_PASSWORD_ERROR("用户密码错误", 102),;


    private final String msg;
    private final int code;

    LoginEnum(String msg, int code) {
        this.msg = msg;
        this.code = code;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
